package com.lin.utils;

import java.util.HashMap;

import android.content.Context;
import android.database.sqlite.SQLiteOpenHelper;
import android.graphics.Bitmap;

public class LocalDb {

	private Context mContext;
	private SQLiteOpenHelper mDbHelper;
	private boolean mDevMode;
//	path -> thumbnail
	private HashMap<String,Bitmap> mCachedBitmaps;
	public LocalDb(Context context, boolean devmode) {
		mContext = context;
		mDevMode = devmode;

//		mCachedBitmaps = new HashMap<String, Bitmap>();

		/*mDbHelper = new SQLiteOpenHelper(mContext, "bcc", null, DATASTORE_VERSION) {
			@Override
			public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
				doDrop(db);
				doCreate(db);
			}

			@Override
			public void onCreate(SQLiteDatabase db) {
				doCreate(db);
			}
		};

		try {
			mInsertWithOnConflict = SQLiteDatabase.class.getMethod("insertWithOnConflict", String.class, String.class, ContentValues.class, int.class);
		} catch (Exception e) {
			mInsertWithOnConflict = null;
		}*/
	}

}